import { NzSafeAny } from 'ng-zorro-antd/core/types';

import { WidgetSetting } from './widget-default-setting';

export class BaseWidgetComponent {
  private _configuration: NzSafeAny;

  constructor(settings: WidgetSetting) {}

  get configuration(): NzSafeAny {
    return this._configuration;
  }

  initConfiguration(): void {
    const config = {
      // General
      widgetName: '',
      // Appearance
      widgetTitle: '',
      // Border
      borderThickness: 0,
      selectBackgroundColor: 'transparent',
      selectBorderColor: '#f2f2f2'
    };

    this._configuration = config;
  }
}
